-- GENERATED SPELL FOR [Officer Van Rossem] --


function spell0_31081(pUnit, Event) --@Flight - To Icecrown Airship (A) - Force Cast - Summon Vehicle,n/a--
pUnit:FullCastSpellOnTarget(58349,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31081', 593, 1)
end

function Sorts_31081(pUnit, Event)
local choix_sorts_31081 = math.random(0, 0)
if choix_sorts_31081 == 0 then
pUnit:RegisterEvent('spell0_31081', 1, 1)
end
end

function mob31081_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31081', math.random(1500, 3000), 1)
end

function mob31081_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31081_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31081_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31081, 1, 'mob31081_Action')
RegisterUnitEvent(31081, 2, 'mob31081_Leave')
RegisterUnitEvent(31081, 3, 'mob31081_Kill')
RegisterUnitEvent(31081, 4, 'mob31081_Die')
